package net.csdn.business.common.domain.request.enterprise;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @ClassName Enterprise
 * @Description TODO
 * @Author lzs
 * @Date 2024/4/16
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EnterpriseApiAddDTO {
    //企业名称
    @NotBlank(message = "enterpriseName 不能为空")
    private String enterpriseName;
    //企业社会信用代码
    @NotBlank(message = "enterpriseName 不能为空")
    @Pattern(regexp = "^[0-9A-Z]{18}$",message = "统一社会信用代码格式不正确")
    private String creditCode;
    //营业执照
    @NotBlank(message = "营业执照不能为空")
    private String businessLicense;
    //营业执照法人名称
    @NotBlank(message = "企业法人名称不能为空")
    private String businessCorporation;
    //组织编码
    @NotBlank(message = "orgCode 不能为空")
    private String orgCode;
    //法人代表
    @NotBlank(message = "corporation 不能为空")
    private String corporation;
    //身份证号
    @NotBlank(message = "idcard 不能为空")
    @Pattern(regexp = "^\\d{17}[0-9Xx]$")
    private String idcard;
    //身份证正面
    @NotNull(message = "身份证正面照不能为空")
    private String idcardFront;

    private String creatorId;
    private String orgId;

    @NotBlank(message = "企业授权书不能为空")
    private String authorisationLetter;
    private String authorisationLetterName;
    private String authorisationLetterSize;
}
